#include "sd/config.hpp"
#include "sd/sparse.hpp"

#include <iostream>

using namespace std;
using namespace sd;
using namespace Eigen;

void test_sparser()
{
    Eigen::SparseVector<double> w(10), v;
    w.insertBack(2) = 3;
    w.insertBack(5) = 9;
    w.insertBack(8) = 1;

    std::cout << "w=" << w << std::endl;
    v = MT::sparser(w, 0.5);
    std::cout << "v=" << v << std::endl;
}


int main()
{
    test_sparser();
    return 0;
}
